<template>
    <list-layout>
        <div slot="search">
            <el-form :model="queryParams" :inline="true" ref="queryForm" v-show="showSearch" label-width="88px">
                <el-form-item :label="$t('inventoryManagement.supplierBatchNo')" prop="lichn">
                    <el-input v-model="queryParams.lichn" :placeholder="
              $t('public.placeholder', {
                placeholder: $t('inventoryManagement.supplierBatchNo'),
              })
            " clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item :label="$t('inventoryManagement.materialName')" prop="materialName">
                    <div style="width: 215px">
                        <material-dialog v-model="queryParams.materialName" :chartType="activeName" :sourceType="'statistics'" @callback="(row) => materialDataCallback(row)" />
                    </div>
                </el-form-item>
                <el-form-item :label="$t('inventoryManagement.supplierName')" prop="supplierName">
                    <div style="width: 215px">
                        <supplier-dialog v-model="queryParams.supplierName" @callback="(row) => supplierDataCallback(row)" />
                    </div>
                </el-form-item>
                <el-form-item :label="$t('inventoryManagement.supplierNo')" prop="supplierCode">
                    <el-input v-model="queryParams.supplierCode" :placeholder="
              $t('public.placeholder', {
                placeholder: $t('inventoryManagement.supplierNo'),
              })
            " clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item :label="$t('bommaterial.projectName')" prop="projectName">
                    <el-select v-model="queryParams.projectName" :placeholder="
              $t('public.select_holder', {
                select_holder: $t('bommaterial.projectName'),
              })
            " style="width: 100%" clearable size="small" :multiple="activeName === '1'" :multiple-limit="2" filterable>
                        <el-option size="mini" v-for="item in projectList" :key="item.projectName" :label="item.projectName" :value="item.projectName">
                        </el-option>
                    </el-select>
                </el-form-item>
                <!-- <el-form-item :label="$t('inventoryManagement.batch')" prop="lot">
                    <el-input v-model="queryParams.lot" :placeholder="
              $t('public.placeholder', {
                placeholder: $t('inventoryManagement.batch'),
              })
            " clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item> -->
                <el-form-item :label="$t('inventoryManagement.factory')" prop="factoryCode">
                    <el-select v-model="queryParams.factoryCode" :placeholder="
              $t('public.select_holder', {
                select_holder: $t('inventoryManagement.factory'),
              })
            " style="width: 100%" clearable size="small">
                        <el-option v-for="item in factoryList" :key="item.plantCode" :label="item.plantName" :value="item.plantCode" />
                    </el-select>
                </el-form-item>
                <!-- <el-form-item label="物料大类" prop="materialMax">
                    <el-select v-model="queryParams.materialMax" filterable size="small" reserve-keyword :placeholder="$t('public.inputPl') + '物料大类'">
                        <el-option v-for="item in dict.type.NYIQC_MATERIAL_MAX" :key="item.label" :label="item.label" :value="item.label">
                        </el-option>
                    </el-select>
                </el-form-item> -->
                <!--                <el-form-item label="物料中类" prop="materialMiddle">
                    <el-select v-model="queryParams.materialMiddle" multiple filterable size="small" reserve-keyword :placeholder="$t('public.inputPl') + '物料中类'">
                        <el-option v-for="item in dict.type.NYIQC_MATERIAL_MIDDLE" :key="item.label" :label="item.label" :value="item.label">
                        </el-option>
                    </el-select>
                </el-form-item>-->
                <!-- <el-form-item label="成熟度" prop="maturity">
                    <el-select v-model="queryParams.maturity" multiple filterable size="small" reserve-keyword :placeholder="
              $t('public.select_holder', { select_holder: '成熟度' })
            ">
                        <el-option v-for="item in dict.type.NYIQC_MATURITY" :key="item.label" :label="item.label" :value="item.label">
                        </el-option>
                    </el-select>
                </el-form-item> -->
                <el-form-item :label="$t('public.createTime')" prop="cpudt">
                    <el-date-picker style="width: 214px" v-model="queryParams.cpudt" size="small" value-format="yyyy-MM-dd" type="daterange" start-placeholder="开始日期" end-placeholder="结束日期">
                    </el-date-picker>
                </el-form-item>
            </el-form>
            <div style="display: flex; justify-content: center">
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t("public.search") }}</el-button>
                <el-button icon="el-icon-refresh" class="resectBtn" size="mini" @click="resetQuery">{{ $t("public.reset") }}</el-button>
            </div>
        </div>
        <div class="app-container">
            <div class="container-header">
                <div class="header-left">{{ $t('statistics.checkoutResultAnalysis') }}</div>
            </div>

            <el-tabs type="border-card" class="mt10" v-model="activeName" @tab-click="tabClick">
                <el-tab-pane :label="$t('statistics.boxplot')" name="1">
                    <!-- <img :src="box" style="width:100%" /> -->
                    <bar-chart :boxData="boxData" v-if="activeName === '1'" />
                </el-tab-pane>
                <el-tab-pane :label="$t('statistics.scatterPlot')" name="2">
                    <line-chart :scatterData="scatterData" v-if="activeName === '2'" />
                    <!-- <img :src="line" style="width:100%" /> -->
                </el-tab-pane>
            </el-tabs>
            <el-button @click="isShow=!isShow" style="color:#444a5f;margin-top:10px;" size="mini">{{ $t('statistics.fold') }}
                <!-- <i class="el-icon-arrow-down"></i> -->
                <svg v-if="!isShow" class="icon_svg" aria-hidden="true">
                    <use xlink:href="#icon-doubleleft"></use>
                </svg>
                <svg v-else class="icon_svg" aria-hidden="true">
                    <use xlink:href="#icon-doubleright"></use>
                </svg>
            </el-button>
            <div class="container-table mt10" v-show="isShow">
                <el-table max-height="350" v-if="activeName === '1'" border stripe v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
                    <el-table-column :label="$t('public.serialNum')" type="index" width="55" align="center" />
                    <el-table-column :label="$t('statistics.supplierBatchNo')" align="left" prop="supplierBatch" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.QuarterValue')" align="left" prop="quarterValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.minValue')" align="left" prop="minValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.median')" align="left" prop="middleValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.maxValue')" align="left" prop="maxValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.ThreeQuartersValue')" align="left" prop="threeQuartersValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.meanValue')" align="left" prop="meanValueValue" show-overflow-tooltip />
                </el-table>
                <el-table max-height="350" v-if="activeName === '2'" border stripe v-loading="loading" :data="typeList" @selection-change="handleSelectionChange">
                    <el-table-column :label="$t('public.serialNum')" type="index" width="55" align="center" />
                    <el-table-column :label="$t('statistics.supplierBatchNo')" align="left" prop="supplierBatch" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.maxValue')" align="left" prop="maxValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.minValue')" align="left" prop="minValue" show-overflow-tooltip />
                    <el-table-column :label="$t('statistics.meanValue')" align="left" prop="meanValueValue" show-overflow-tooltip />
                    <!-- <el-table-column label="标准值" align="left" prop="targetValue" show-overflow-tooltip /> -->

                </el-table>
                <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" layout="total, sizes, prev, pager, next, jumper" />
            </div>

            <!-- 新增|编辑｜查看 弹框 -->
            <!--      <detail :visible.sync="visible" v-model="form" :type="dialogType" @refresh="getList()"></detail>-->
        </div>
    </list-layout>
</template>
<script>
import {refreshCache,} from '@/api/basic/dict/type'
import {delMaterialType, importMaterialType, listALLMaterialType,} from '@/api/basic/materialtype'
import PanelGroup from './echarts/PanelGroup'
import './styles/iconfont'
import LineChart from './echarts/LineChart'
import RaddarChart from './echarts/RaddarChart'
import PieChart from './echarts/PieChart'
import BarChart from './echarts/BarChart'
import SupplierDialog from '@/views/components/SupplierDialog'

import {
  checkoutResultChart,
  checkoutResultList,
  checkoutResultScatterChart,
  checkoutScatterResultList,
  statisticsPageClass,
} from '@/api/statistical/statistical'
import {listALLFactory, listFactory} from '@/api/basic/factory'
import MaterialDialog from '@/views/components/MaterialDialog'
import box from '@/assets/images/box.jpg'
import line from '@/assets/images/line.jpg'

export default {
    name: 'materialType',
    components: {
        PanelGroup,
        LineChart,
        RaddarChart,
        PieChart,
        BarChart,
        SupplierDialog,
        MaterialDialog,
    },
    dicts: [
        'NYIQC_GAUGE_TYPE', //量具类型
        'NYIQC_MATERIAL_MIDDLE',
        'NYIQC_MATERIAL_MAX',
        'NYIQC_MATURITY',
    ],
    // components:{Detail},
    data() {
        return {
            box: box,
            line: line,
            dialogType: 1, //1:新增  2：编辑 3：查看
            dialogForm: {},
            isShow: false,
            activeName: '1',
            materialTypeOptions: [],
            projectList: [],
            factoryList: [],
            projectName: null,
            direction: 'rtl',
            boxData: {},
            scatterData: {},
            addInspection: false,
            visible: false,
            drawer: false,
            approvalOpen: false,
            viewModel: {
                inspectionInformation: '0',
            },
            editModel: {
                inspectionInformation: '0',
            },
            approvalForm: {
                status: '1',
                textarea: '',
            },
            selBtn: 1,
            // 遮罩层
            loading: true,
            // 选中数组
            ids: [],
            // 非单个禁用
            single: true,
            // 非多个禁用
            multiple: true,
            // 显示搜索条件
            showSearch: true,
            // 总条数
            total: 0,
            // 字典表格数据
            typeList: [],
            // 弹出层标题
            title: '',
            // 是否显示弹出层
            open: false,
            // 日期范围
            dateRange: [],
            // 查询参数
            queryParams: {
                pageNum: 1,
                pageSize: 10,
                factoryCode: '',
                flawProjectName: '',
                supplierName: null,
                materialType: '',
                maturity: [],
                materialType: '',
                materialType: '',
                materialType: '',
                materialMiddle: [],
                materialMax: [],
                materialName: '',
                projectName: [],
            },
            // 表单参数
            form: undefined,
            exportLoading: false,
            fullscreen: false,
        }
    },
    created() {
        // this.queryParams.projectName = ['宽度']
        this.getFactoryList()
        this.getChartData()
        this.getList()
    },
    methods: {
        supplierDataCallback(row) {
            this.queryParams.supplierCode = row.supplierCode
            this.queryParams.supplierName = row.supplierName
            this.queryParams.supplierType = row.supplierCategory
        },
        materialDataCallback(row) {
            this.queryParams.materialCode = row.materialCode
            this.queryParams.materialName = row.materialName
            this.queryParams.materialType = row.materialType
            this.getProjectList()
        },
        changeProject(e) {
            let obj = this.projectList.find((item) => {
                return item.projectName === e
            })
            this.queryParams.projectCode = obj.projectCode
            this.queryParams.projectId = obj.projectId
        },
        getFactoryList() {
            listFactory().then((res) => {
                this.factoryList = res.rows
            })
        },
        getProjectList() {
            statisticsPageClass({
                factoryCode: this.queryParams.factoryCode,
                materialCode: this.queryParams.materialCode,
                samplingAmount: this.activeName === '1' ? 1 : 2,
            }).then((res) => {
                this.projectList = res.data
                // this.queryParams.projectName = [this.projectList[0].projectName]
                if (this.activeName === '1') {
                    this.queryParams.projectName =
                        this.projectList.length > 0
                            ? [this.projectList[0].projectName]
                            : []
                } else {
                    this.queryParams.projectName =
                        this.projectList.length > 0
                            ? this.projectList[0].projectName
                            : null
                }

                this.getChartData()
            })
        },
        filterParams(p) {
            if (p && p.length) {
                let index = (p || []).findIndex((i) => i === '全部')
                console.log(index)
                index >= 0 ? p.splice(index, 1) : p
                return p.join(',')
            } else {
                return ''
            }
        },
        drawerClose() {
            this.drawer = false
        },
        /** 查询字典类型列表 */
        getList() {
            this.loading = true
            let params = JSON.parse(JSON.stringify(this.queryParams))
            params.materialMiddle = this.filterParams(params.materialMiddle)
            params.projectName = this.filterParams(params.projectName)
            params.maturity = this.filterParams(params.maturity)
            params.startTime = params.cpudt ? params.cpudt[0] : ''
            params.endTime = params.cpudt ? params.cpudt[1] : ''
            delete params.cpudt
            checkoutResultList(params).then((response) => {
                if (response.code == 200 && response.rows) {
                    this.typeList = response.rows
                    this.total = response.total
                    this.loading = false
                }
            })
        },
        getScatterList() {
            this.loading = true
            let params = JSON.parse(JSON.stringify(this.queryParams))
            params.materialMiddle = this.filterParams(params.materialMiddle)
            params.maturity = this.filterParams(params.maturity)
            params.startTime = params.cpudt ? params.cpudt[0] : ''
            params.endTime = params.cpudt ? params.cpudt[1] : ''
            delete params.cpudt
            checkoutScatterResultList(params).then((response) => {
                if (response.code == 200 && response.rows) {
                    this.typeList = response.rows
                    this.total = response.total
                    this.loading = false
                }
            })
        },
        handleMaterialMessageTypeChange(e) {
            console.log('无聊', e)
            this.queryParams.gaugeType = e.join(',')
        },
        // 取消按钮
        cancel() {
            this.open = false
            this.reset()
        },
        // 表单重置
        reset() {
            this.form = {
                dictId: undefined,
                dictName: undefined,
                dictType: undefined,
                status: '0',
                remark: undefined,
            }
            this.resetForm('form')
        },
        /** 搜索按钮操作 */
        handleQuery() {
            this.queryParams.pageNum = 1
            if (this.activeName === '1') {
                this.getChartData()
                this.getList()
            } else {
                this.checkoutResultScatterChart()
                this.getScatterList()
            }
        },
        checkoutResultScatterChart() {
            let params = JSON.parse(JSON.stringify(this.queryParams))
            params.materialMiddle = this.filterParams(params.materialMiddle)
            params.maturity = this.filterParams(params.maturity)
            params.startTime = params.cpudt ? params.cpudt[0] : ''
            params.endTime = params.cpudt ? params.cpudt[1] : ''
            delete params.cpudt
            checkoutResultScatterChart(params).then((response) => {
                let tempData = response.data
                let scatterData = {
                    checkoutValues: [],
                    supplierBatch: [],
                    average: [],
                }
                if (tempData.length > 0) {
                    scatterData.upperLimit = tempData[0].upperLimit
                    scatterData.lowerLimit = tempData[0].lowerLimit
                    scatterData.targetValue = tempData[0].targetValue
                }
                let supplierBatch = []
                let average = []
                let maxValue = -1
                let minValue = -1
                let target = -1
                tempData.forEach((io, index) => {
                    if (maxValue < parseFloat(io.maxValue)) {
                        maxValue = parseFloat(io.maxValue)
                    }
                    if (index === 0) {
                        minValue = parseFloat(io.minValue)
                    }
                    if (parseFloat(io.minValue) < minValue) {
                        minValue = parseFloat(io.minValue)
                    }
                    average.push(parseFloat(io.meanValueValue).toFixed(3))
                    supplierBatch.push(io.supplierBatch)
                    let checkoutValues = io.checkoutResult.split(',')
                    checkoutValues.forEach((ko) => {
                        scatterData.checkoutValues.push([
                            io.supplierBatch,
                            parseFloat(ko).toFixed(3),
                        ])
                    })
                })
                scatterData.average = average
                scatterData.maxValue = maxValue
                scatterData.minValue = minValue
                scatterData.target = ((maxValue + minValue) / 2).toFixed(3)
                scatterData.supplierBatch = supplierBatch
                this.scatterData = scatterData
                console.log('tempData=========>', scatterData)
            })
        },
        getChartData() {
            let params = JSON.parse(JSON.stringify(this.queryParams))
            params.projectName = this.filterParams(params.projectName)
            params.materialMiddle = this.filterParams(params.materialMiddle)
            params.maturity = this.filterParams(params.maturity)
            params.startTime = params.cpudt ? params.cpudt[0] : ''
            params.endTime = params.cpudt ? params.cpudt[1] : ''
            delete params.cpudt
            checkoutResultChart(params).then((response) => {
                let tempData = response.data
                let rawData = [
                    [
                        'CheckoutResult',
                        'SupplierBatchNo',
                        'upperLimit',
                        'lowerLimit',
                        'targetValue',
                        'projectName',
                    ],
                ]
                let rawData2 = [
                    [
                        'CheckoutResult',
                        'SupplierBatchNo',
                        'upperLimit',
                        'lowerLimit',
                        'targetValue',
                        'projectName',
                    ],
                ]
                let boxData = { average: [], average2: [] }
                let maxValue = -1
                let minValue = -1
                let target = -1
                tempData.forEach((io, index) => {
                    if (maxValue < parseFloat(io.maxValue)) {
                        maxValue = parseFloat(io.maxValue)
                    }
                    if (index === 0) {
                        minValue = parseFloat(io.minValue)
                    }
                    if (parseFloat(io.minValue) < minValue) {
                        minValue = parseFloat(io.minValue)
                    }
                    let checkoutValues = io.checkoutResult.split(',')
                    if (this.queryParams.projectName.length === 2) {
                        if (
                            this.queryParams.projectName[0] === io.projectName
                        ) {
                            boxData.average.push([
                                io.supplierBatch,
                                io.meanValueValue,
                            ])
                        }
                        if (
                            this.queryParams.projectName[1] === io.projectName
                        ) {
                            boxData.average2.push([
                                io.supplierBatch,
                                io.meanValueValue,
                            ])
                        }
                    } else {
                        boxData.average.push([
                            io.supplierBatch,
                            io.meanValueValue,
                        ])
                    }
                    checkoutValues.forEach((ko) => {
                        if (this.queryParams.projectName.length === 2) {
                            if (
                                this.queryParams.projectName[0] ===
                                io.projectName
                            ) {
                                rawData.push([
                                    parseFloat(ko).toFixed(3),
                                    io.supplierBatch,
                                    io.upperLimit,
                                    io.lowerLimit,
                                    io.targetValue,
                                    io.projectName,
                                ])
                            }
                            if (
                                this.queryParams.projectName[1] ===
                                io.projectName
                            ) {
                                rawData2.push([
                                    parseFloat(ko).toFixed(3),
                                    io.supplierBatch,
                                    io.upperLimit,
                                    io.lowerLimit,
                                    io.targetValue,
                                    io.projectName,
                                ])
                            }
                        } else {
                            rawData.push([
                                parseFloat(ko).toFixed(3),
                                io.supplierBatch,
                                io.upperLimit,
                                io.lowerLimit,
                                io.targetValue,
                                io.projectName,
                            ])
                        }
                    })
                })
                boxData.rawData = rawData
                boxData.maxValue = maxValue
                boxData.minValue = minValue
                boxData.target = ((maxValue + minValue) / 2).toFixed(3)
                if (this.queryParams.projectName.length === 2) {
                    boxData.rawData2 = rawData2
                }

                this.boxData = boxData
                console.log('rawData=========>', boxData)
            })
        },
        /** 重置按钮操作 */
        resetQuery() {
            this.dateRange = []
            this.resetForm('queryForm')
            if (this.activeName === '1') {
                // this.queryParams.projectName = ['宽度']
            } else {
                // this.queryParams.projectName = 'PH'
                this.queryParams.projectName = ''
            }

            this.handleQuery()
        },
        /** 新增按钮操作 */
        handleAdd() {
            this.form = {}
            this.dialogType = 1
            this.visible = true
        },
        handleApproval() {
            if (this.ids.length === 0) {
                this.$modal.msgWarning(
                    this.$t('inspectionManagement.pleaseSelectOne')
                )
                return
            }
            this.handleDelete()
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
            this.ids = selection.map((item) => item.typeName)
            // this.single = selection.length!=1
            // this.multiple = !selection.length
        },

        materialTypeRemoteMethod(e) {
            listALLMaterialType({ materialTypeName: e }).then((res) => {
                this.materialTypeOptions = res.data
            })
        },
        handleMaterialMaxChange(e) {
            this.queryParams.materialMax = e.join(',')
        },
        handleMaterialMiddleChange(e) {
            this.queryParams.materialMiddle = e.join(',')
        },
        /** 删除按钮操作 */
        handleDelete(row) {
            const dictIds = (row && row.typeName) || this.ids
            this.$modal
                .confirm('是否确认删除类型名称为"' + dictIds + '"的数据项？')
                .then(function () {
                    return delMaterialType(dictIds)
                })
                .then(() => {
                    this.getList()
                    this.$modal.msgSuccess(this.$t('processDefinition.successfullyDeleted'))
                })
                .catch(() => {})
        },
        /** 查看按钮操作 */
        handleView(row) {
            this.dialogType = 3
            this.form = row
            this.visible = true
            // if(row.hasRead == 0){
            //   readNotice(row.noticeId).then(res=>{
            //     if(res.code == 200){
            //       this.handleQuery()
            //     }
            //   })
            // }
        },
        /** 编辑按钮操作 */
        handleEdit(row) {
            this.dialogType = 2
            this.form = row
            this.visible = true
        },
        /** 关闭抽屉操作 */
        handleClose(row) {
            this.drawer = false
        },
        tabClick() {
            if (this.activeName === '1') {
                // this.queryParams.projectName = ['宽度']
                this.getList()

                this.getChartData()
            } else {
                // this.queryParams.projectName = 'PH'
                this.queryParams.projectName = ''
                this.checkoutResultScatterChart()
                this.getScatterList()
            }
        },
        // 导入
        handleImport() {
            this.$refs['excel-upload-input'].click()
        },
        async handleClick(e) {
            try {
                const formData = new FormData()
                formData.append('file', e.target.files[0])
                const res = await importMaterialTypeExcel(formData)
                if (res.code == 200) {
                    this.$message.success('导入成功')
                    this.getList()
                    this.$refs['excel-upload-input'].value = ''
                }
            } catch (error) {
                this.$refs['excel-upload-input'].value = ''
            }
        },
        /** 导出按钮操作 */
        handleExport() {
            // const queryParams = this.queryParams
            // this.$modal.confirm(this.$t('MaterialType.export')).then(() => {
            //   this.exportLoading = true
            //   return exportMaterialType(queryParams)
            // }).then(response => {
            //   this.$download.name(response.msg)
            //   this.exportLoading = false
            // }).catch(() => {})
            this.download(
                'flmasterdata/materialMin/export',
                {
                    ...this.queryParams,
                },
                `materialType_${new Date().getTime()}.xlsx`
            )
        },
        handleImport() {
            this.$refs['excel-upload-input'].click()
        },
        async handleClick(e) {
            try {
                const formData = new FormData()
                formData.append('file', e.target.files[0])
                const res = await importMaterialType(formData)
                if (res.code == 200) {
                    this.$message.success('导入成功')
                    this.getList()
                    this.$refs['excel-upload-input'].value = ''
                }
            } catch (error) {
                this.$refs['excel-upload-input'].value = ''
            }
        },
        /** 刷新缓存按钮操作 */
        handleRefreshCache() {
            refreshCache().then(() => {
                this.$modal.msgSuccess('刷新成功')
            })
        },
        //厂区模糊查询
        factoryRemoteMethod(val, cb) {
            listALLFactory({ factoryName: val }).then((res) => {
                this.factoryOptions = res.data.map((i) => i.factoryName)
                cb(res.data)
            })
        },

        handleFactorySelect(e) {
            this.queryParams.factoryName = e.factoryName
        },
    },
}
</script>
<style lang="scss" scoped>
::v-deep .el-card {
    padding-top: 20px;
    border: 0px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding-bottom: 20px;
}
::v-deep .el-aside {
    padding: 0;
    margin-bottom: 0;
}
.content-style {
    border: 0px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    background-color: white;
    margin-top: 10px;
}
::v-deep .el-button-group .selBtn {
    background: #fff;
    border: 1px solid #0b7be3;
    color: #0b7be3;
}
::v-deep .el-button-group .unselBtn {
    background: #fff;
    border: 1px solid #ededf2;
    color: #666666;
}
.header-left {
    font-size: 14px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #333333;
    padding: 3px 0 10px;
    display: inline-flex;
    justify-content: center;
    border-bottom: 2px solid #0b7be3;
}
.header-right {
    float: right;
}
.container-header {
    border-bottom: 1px solid #ededf2;
}
.container-table {
    float: left;
    //margin-top:6px;
    width: 100%;
}
.mb8 {
    float: left;
    margin-top: 6px;
    width: 100%;
}
.drawer-footer {
    display: flex;
    position: relative;
    z-index: 9999;
    bottom: -40px;
    height: 40px;
    justify-content: center;
    width: 100%;
}
.drawer-close {
    background: #f7f8fa;
    border-color: #f7f8fa;
}

.right-btns ::v-deep .el-button {
    margin-top: 0;
}
.app-container {
    padding: 0;
}
.table-action-wrap {
    padding: 12px 0;
}
.icon_svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
</style>
